package com.permission.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.permission.dto.response.menu.PermsResponse;
import com.permission.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author xhs
 * @since 2021-08-27
 */
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {

    /**
     * 根据登录账号查询用户权限-数据权限标识
     *
     * @param loginId
     * @return
     */
    List<PermsResponse> getPerms(@Param("loginId") String loginId);

    /**
     * 查询所有的接口地址及接口权限标识
     *
     * @return
     */
    List<PermsResponse> getInterfaceInfo();
}
